package myClass;

public class DemoClassBuild {
    //成员变量
    public  String name;
    public int age;
    //成员方法

    public void setAge(int age) {
        this.age = age;
    }
    public void setName(String name) {
        this.name = name;
    }
    public void eat(){
        System.out.println("吃饭！");
    }
    public void study(){
        System.out.println("学习！");
    }
    public void persionInternet(){
        System.out.println("姓名："+name+" 年龄："+age);
    }

}
